﻿using System;
using System.Collections.Generic;
using System.Web.Script.Serialization;
using Taype.Trading.BTC.Utilities;
using BitCoinSharp;

namespace Taype.Trading.BTC.TradeHillAPIClient.JSONObjects
{

    /// <summary>
    /// Return: Dictionary containing the following fields:
    /// Email: The email address associated with this account. This is the same as your TradeHill Username.
    /// BTC Deposit Address: Static BTC Deposit Address for this account.
    /// Referral Code: Referral code for this account.
    /// Commission Rate: Value representing the commission charged for trades made on this account. Value is a percentage. Ex: 0.60%
    /// </summary>
    public class TradeHillProfileInfo
    {

        public string Email {get; set;}
        public Address BTCDepositAddress {get; set;}
        public string ReferralCode {get; set;}
        public double CommissionRate {get; set;}

        public static List<TradeHillProfileInfo> getObjects(string jsonDataStr)
        {
            throw new NotImplementedException();
            List<TradeHillProfileInfo> tradeList = new List<TradeHillProfileInfo>();
            string json = jsonDataStr;
            var serializer = new JavaScriptSerializer();
            serializer.RegisterConverters(new[] { new DynamicJsonConverter() });
            dynamic obj = serializer.Deserialize(json, typeof(object));
            return tradeList;
        }
    }
}
